package org.jsystem;



import org.jsystem.tools.CreatePush;
import org.jsystem.tools.LogContainerHttp;

import jsystem.framework.system.SystemObjectImpl;
import junit.framework.Assert;
 
public class ExistedPushSo extends SystemObjectImpl 
{
	LogContainerHttp logContainerHttp = new LogContainerHttp();
    private String srcIp = "";
    private String streamName = "";
    
    final private static String HTTP = "http://";
    final private static String params = ":4444/zixi/add_stream.json?func=load_live_inputs&type=push&password=&latency=-1&force_p2p=0&id=";
    final private static String prequestEnd = "&max_outputs=-1&mcast_out=0&time_shift=0&ie_fooler=0.2537516674492508";
 
    public void verifyIfPushCreated()
    {
    	CreatePush createpush = new CreatePush();         
		Assert.assertNull(createpush.sendGet(HTTP + srcIp + params + streamName + prequestEnd, logContainerHttp));
    }

	public String getSrcIp() {
		return srcIp;
	}

	public void setSrcIp(String srcIp) {
		this.srcIp = srcIp;
	}

	public String getStreamName() {
		return streamName;
	}

	public void setStreamName(String streamName) {
		this.streamName = streamName;
	}
 }